import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/utils/image_loader.dart';
import 'package:flutter/material.dart';

class MyHader extends StatefulWidget {
  const MyHader({super.key});

  @override
  State<MyHader> createState() {
    return MyHaderState();
  }
}

class MyHaderState extends State<MyHader> {
  @override
  Widget build(BuildContext context) {
    return Container(
        height: 174,
        padding: const EdgeInsets.fromLTRB(
            EdgeConstant.edge20, 0, 0, EdgeConstant.edge30),
        decoration: const BoxDecoration(
          gradient: LinearGradient(colors: [
            Color.fromRGBO(255, 143, 0, 1),
            Color.fromRGBO(255, 80, 0, 1)
          ], begin: Alignment.centerLeft, end: Alignment.centerRight),
        ),
        alignment: Alignment.bottomLeft,
        child: Row(
          children: <Widget>[
            ImageLoader.imageAsset('empty_user.png'),
            const Padding(
              padding: EdgeInsets.only(left: 14),
              child: Text(
                'Login/Register',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: FontConstant.f168,
                  fontWeight: FontWeight.w600,
                ),
              ),
            )
          ],
        ));
  }
}
